package com.wc.tt;

public class CalculatorContext {
    private Calculator calculator;

    public CalculatorContext() {
    }

    public CalculatorContext(Calculator calculator) {
        this.calculator = calculator;
    }

    public void setCalculator(Calculator calculator) {
        this.calculator = calculator;
    }

    public int cal(Integer num1, Integer num2){
        int res = calculator.cal(num1, num2);
        return res;
    }
}